.class Lcom/teewoo/app/bus/ui/WeatheTab$1$1;
.super Ljava/lang/Object;
.source "WeatheTab.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemSelectedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/WeatheTab$1;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemSelectedListener;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

.field private final synthetic val$viewDlg:Landroid/view/View;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/WeatheTab$1;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    iput-object p2, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->val$viewDlg:Landroid/view/View;

    .line 121
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1$1;)Lcom/teewoo/app/bus/ui/WeatheTab$1;
    .locals 1
    .parameter

    .prologue
    .line 121
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    return-object v0
.end method


# virtual methods
.method public onItemSelected(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 10
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 125
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    move-object v0, p1

    check-cast v0, Landroid/widget/Spinner;

    move-object v5, v0

    .line 127
    .local v5, prov:Landroid/widget/Spinner;
    invoke-virtual {v5, p3}, Landroid/widget/Spinner;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v6

    .line 126
    check-cast v6, Ljava/lang/String;

    .line 128
    .local v6, provName:Ljava/lang/String;
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v7

    invoke-static {v7, p3}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$4(Lcom/teewoo/app/bus/ui/WeatheTab;I)V

    .line 130
    :try_start_0
    sget-object v7, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    .line 131
    invoke-virtual {v7, v6}, Lcom/teewoo/app/bus/db/MySqliteHelper;->findCitiesByProv(Ljava/lang/String;)Ljava/util/List;

    move-result-object v2

    .line 132
    .local v2, cities:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v7

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$5(Lcom/teewoo/app/bus/ui/WeatheTab;)I

    move-result v7

    const/4 v8, -0x1

    if-ne v7, v8, :cond_0

    .line 133
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v7

    iget-object v8, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v8}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v8

    const-string v9, "\u53a6\u95e8"

    invoke-static {v8, v9, v2}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$3(Lcom/teewoo/app/bus/ui/WeatheTab;Ljava/lang/String;Ljava/util/List;)I

    move-result v8

    invoke-static {v7, v8}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$6(Lcom/teewoo/app/bus/ui/WeatheTab;I)V

    .line 135
    :cond_0
    new-instance v1, Landroid/widget/ArrayAdapter;

    .line 136
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v7

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$1(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/content/Context;

    move-result-object v7

    .line 137
    const v8, 0x1090008

    .line 135
    invoke-direct {v1, v7, v8, v2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 140
    .local v1, adapterCity:Landroid/widget/ArrayAdapter;,"Landroid/widget/ArrayAdapter<Ljava/lang/String;>;"
    const v7, 0x1090009

    invoke-virtual {v1, v7}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 141
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->val$viewDlg:Landroid/view/View;

    .line 142
    const v8, 0x7f0a00a7

    invoke-virtual {v7, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 141
    check-cast v3, Landroid/widget/Spinner;

    .line 143
    .local v3, cmbCities:Landroid/widget/Spinner;
    invoke-virtual {v3, v1}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 144
    iget-object v7, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;->this$1:Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab$1;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;

    move-result-object v7

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$5(Lcom/teewoo/app/bus/ui/WeatheTab;)I

    move-result v7

    invoke-virtual {v3, v7}, Landroid/widget/Spinner;->setSelection(I)V

    .line 146
    new-instance v7, Lcom/teewoo/app/bus/ui/WeatheTab$1$1$1;

    invoke-direct {v7, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$1$1$1;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab$1$1;)V

    invoke-virtual {v3, v7}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    .line 166
    .end local v1           #adapterCity:Landroid/widget/ArrayAdapter;,"Landroid/widget/ArrayAdapter<Ljava/lang/String;>;"
    .end local v2           #cities:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    .end local v3           #cmbCities:Landroid/widget/Spinner;
    :goto_0
    return-void

    .line 163
    :catch_0
    move-exception v7

    move-object v4, v7

    .line 164
    .local v4, e:Ljava/io/UnsupportedEncodingException;
    invoke-virtual {v4}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    goto :goto_0
.end method

.method public onNothingSelected(Landroid/widget/AdapterView;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;)V"
        }
    .end annotation

    .prologue
    .line 170
    .local p1, arg0:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    return-void
.end method
